<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * index.php
 * @author ranuandra
 *
 * 25 Jun 2012 10:01:27
 *
 * 
 */
?>
         <div class="toolbar-wrapper">
            	<div class="toolbar-container">
                    <ul class="toolbar">
                        <li><a href="<?php echo URL::base()?>admin/category/new" class="New"><span class="medium_icon_new"></span></a></li>
                    </ul>
                </div>
            	<h1 class="title">Category</h1>
            </div>
            <div class="pagination-wrapper">
            	<div class="search"><label>Cari : </label><input type="text" name="search" size="20"> <input type="submit" value="Go"> <input type="reset"></div>
                <div class="pagination-container">
                	<ul class="pagination">
                    	<li>1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li>
                    </ul>
                </div>
            </div>
            <div class="content">
           		<table class="data">
                	<thead>
                    	<tr>
                        	<th>#<input type="checkbox" name="kolom[]" class="cek_tbl"></th>
                        	<th>Category</th>
                        	<th>Published</th>
                            <th class="action"></th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php 
                    if(isset($datas))
                    {
                    	foreach($datas as $data)
                    	{
                    ?>
                    	<tr>
                        	<td><input type="checkbox" name="kolom[]" class="cek_tbl"></td>
                            <td><?php echo $data->category?></td>
                            <td>
                            <ul class="mini_tool">
                            	<li><a href="<?php echo URL::base()?>admin/category/edit/<?php echo $data->id ?>" title="Edit"><span class="small_icon_edit"></span></a></li>
                                <li>
                                <?php 
                                if($data->flag_published == 1)
                                {
                                ?>
                                	<a href="<?php echo URL::base()?>admin/category/inactive/<?php echo $data->id ?>" title="Delete"><span class="small_icon_active"></span></a> 
                                <?php 
                                } else {
                                ?>  
                                <a href="<?php echo URL::base()?>admin/category/active/<?php echo $data->id ?>" title="Delete"><span class="small_icon_inactive"></span></a> 
                                <?php 
                                }
                                ?>
                                </li>
                            </ul>
                            </td>
                        </tr>
                    <?php 
                    	}
                    }
                    ?>
                    </tbody>

                </table>
            </div>
             <div class="pagination-wrapper">
                <div class="pagination-container">
                	<ul class="pagination">
                    	<li>1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li>
                    </ul>
                </div>
            </div>
            <div>